package cn.rongdao.jrkabao.ui.loan.adapter.viewholder;

import android.support.annotation.Nullable;
import android.view.View;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.main.ProductListBean;
import cn.rongdao.jrkabao.ui.main.mainfragment.loanfragment.uicomponent.ItemMainUIComponent;


/**
 *
 */

public class LoanProductViewHolder extends FRBaseRecyclerViewHolder<ProductListBean> {

    private ItemMainUIComponent itemMainUIComponent;

    public LoanProductViewHolder(View view) {
        super(view);
        itemMainUIComponent = findView(R.id.im_rl_main);
    }

    @Override
    protected void onItemDataUpdated(@Nullable ProductListBean listViewBean) {
        itemMainUIComponent.setContent(listViewBean);
    }

    @Override
    public void setData(ProductListBean productListBean, int count, int position) {
        super.setData(productListBean, count, position);
        itemMainUIComponent.getCurrentPosition(count,position);
    }
}